home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / xpcom / nsIDebug.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  134 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDebug.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDebug_h__
  6. #define __gen_nsIDebug_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDebug */
  19. #define NS_IDEBUG_IID_STR "3bf0c3d7-3bd9-4cf2-a971-33572c503e1e"
  20.  
  21. #define NS_IDEBUG_IID \
  22.   {0x3bf0c3d7, 0x3bd9, 0x4cf2, \
  23.     { 0xa9, 0x71, 0x33, 0x57, 0x2c, 0x50, 0x3e, 0x1e }}
  24.  
  25. /**
  26.  * nsIDebug is an interface between XPCOM Glue and XPCOM.  Users should access
  27.  * the nsIDebug interface through the static class nsDebug.
  28.  * @see nsDebug.h
  29.  *    
  30.  * @status UNDER_REVIEW
  31.  *
  32.  */
  33. class NS_NO_VTABLE nsIDebug : public nsISupports {
  34.  public: 
  35.  
  36.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDEBUG_IID)
  37.  
  38.   /* void assertion (in string aStr, in string aExpr, in string aFile, in long aLine); */
  39.   NS_IMETHOD Assertion(const char *aStr, const char *aExpr, const char *aFile, PRInt32 aLine) = 0;
  40.  
  41.   /* void warning (in string aStr, in string aFile, in long aLine); */
  42.   NS_IMETHOD Warning(const char *aStr, const char *aFile, PRInt32 aLine) = 0;
  43.  
  44.   /* void break (in string aFile, in long aLine); */
  45.   NS_IMETHOD Break(const char *aFile, PRInt32 aLine) = 0;
  46.  
  47.   /* void abort (in string aFile, in long aLine); */
  48.   NS_IMETHOD Abort(const char *aFile, PRInt32 aLine) = 0;
  49.  
  50. };
  51.  
  52. /* Use this macro when declaring classes that implement this interface. */
  53. #define NS_DECL_NSIDEBUG \
  54.   NS_IMETHOD Assertion(const char *aStr, const char *aExpr, const char *aFile, PRInt32 aLine); \
  55.   NS_IMETHOD Warning(const char *aStr, const char *aFile, PRInt32 aLine); \
  56.   NS_IMETHOD Break(const char *aFile, PRInt32 aLine); \
  57.   NS_IMETHOD Abort(const char *aFile, PRInt32 aLine); 
  58.  
  59. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  60. #define NS_FORWARD_NSIDEBUG(_to) \
  61.   NS_IMETHOD Assertion(const char *aStr, const char *aExpr, const char *aFile, PRInt32 aLine) { return _to Assertion(aStr, aExpr, aFile, aLine); } \
  62.   NS_IMETHOD Warning(const char *aStr, const char *aFile, PRInt32 aLine) { return _to Warning(aStr, aFile, aLine); } \
  63.   NS_IMETHOD Break(const char *aFile, PRInt32 aLine) { return _to Break(aFile, aLine); } \
  64.   NS_IMETHOD Abort(const char *aFile, PRInt32 aLine) { return _to Abort(aFile, aLine); } 
  65.  
  66. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  67. #define NS_FORWARD_SAFE_NSIDEBUG(_to) \
  68.   NS_IMETHOD Assertion(const char *aStr, const char *aExpr, const char *aFile, PRInt32 aLine) { return !_to ? NS_ERROR_NULL_POINTER : _to->Assertion(aStr, aExpr, aFile, aLine); } \
  69.   NS_IMETHOD Warning(const char *aStr, const char *aFile, PRInt32 aLine) { return !_to ? NS_ERROR_NULL_POINTER : _to->Warning(aStr, aFile, aLine); } \
  70.   NS_IMETHOD Break(const char *aFile, PRInt32 aLine) { return !_to ? NS_ERROR_NULL_POINTER : _to->Break(aFile, aLine); } \
  71.   NS_IMETHOD Abort(const char *aFile, PRInt32 aLine) { return !_to ? NS_ERROR_NULL_POINTER : _to->Abort(aFile, aLine); } 
  72.  
  73. #if 0
  74. /* Use the code below as a template for the implementation class for this interface. */
  75.  
  76. /* Header file */
  77. class nsDebug : public nsIDebug
  78. {
  79. public:
  80.   NS_DECL_ISUPPORTS
  81.   NS_DECL_NSIDEBUG
  82.  
  83.   nsDebug();
  84.  
  85. private:
  86.   ~nsDebug();
  87.  
  88. protected:
  89.   /* additional members */
  90. };
  91.  
  92. /* Implementation file */
  93. NS_IMPL_ISUPPORTS1(nsDebug, nsIDebug)
  94.  
  95. nsDebug::nsDebug()
  96. {
  97.   /* member initializers and constructor code */
  98. }
  99.  
  100. nsDebug::~nsDebug()
  101. {
  102.   /* destructor code */
  103. }
  104.  
  105. /* void assertion (in string aStr, in string aExpr, in string aFile, in long aLine); */
  106. NS_IMETHODIMP nsDebug::Assertion(const char *aStr, const char *aExpr, const char *aFile, PRInt32 aLine)
  107. {
  108.     return NS_ERROR_NOT_IMPLEMENTED;
  109. }
  110.  
  111. /* void warning (in string aStr, in string aFile, in long aLine); */
  112. NS_IMETHODIMP nsDebug::Warning(const char *aStr, const char *aFile, PRInt32 aLine)
  113. {
  114.     return NS_ERROR_NOT_IMPLEMENTED;
  115. }
  116.  
  117. /* void break (in string aFile, in long aLine); */
  118. NS_IMETHODIMP nsDebug::Break(const char *aFile, PRInt32 aLine)
  119. {
  120.     return NS_ERROR_NOT_IMPLEMENTED;
  121. }
  122.  
  123. /* void abort (in string aFile, in long aLine); */
  124. NS_IMETHODIMP nsDebug::Abort(const char *aFile, PRInt32 aLine)
  125. {
  126.     return NS_ERROR_NOT_IMPLEMENTED;
  127. }
  128.  
  129. /* End of implementation class template. */
  130. #endif
  131.  
  132.  
  133. #endif /* __gen_nsIDebug_h__ */
  134.